home *** CD-ROM | disk | FTP | other *** search
- ______________________________
- | |
- | Section 8: THE STYLE SHEET |
- |______________________________|
-
-
- CONTENTS
-
- 8.1 Obtaining a Style Sheet
- 8.2 Elements of a Style Sheet
- 8.3 Using a Style Sheet
-
-
- 8.1 OBTAINING A STYLE SHEET
-
- A "Style Sheet" is a set of publisher instructions, usually stored as a
- separate disk file, which establish the page layout and format for
- publishing a document. Preparing or selecting a suitable style sheet is
- normally the first step in publishing a document.
-
- The Publisher has a default style sheet, which is stored in the file
- SETUP.TAG. If this is chosen, no action is needed to insert or
- "include" this style sheet in the document file: it will be adopted
- automatically by the Publisher, in the absence of instructions to the
- contrary.
-
- Users may create their own style sheets, using a suitable text editor to
- create a new instruction file and insert the necessary set of tags,
- bearing in mind that if the selection of some particular option or value
- is left unspecified, the Publisher will adopt the option or value
- specified in the default file SETUP.TAG.
-
- 8.2 ELEMENTS OF A STYLE SHEET
-
- All page layout measurements used by the Publisher are measured from the
- TOP LEFT CORNER of the page, which is called the "origin" of the page.
-
- The options and measurements normally specified in a complete style
- sheet are as follows.
-
- 1. Margins and Page Interior
-
- EXAMPLE: the tag:
-
- <margin top=1.0in left=0.75in bottom=10.0in right=7.75in><qz>
-
- defines a page interior 7 inches wide and 9 inches long, with a top
- margin of one inch, and a left margin of three-quarters of an inch.
- If letter-size paper is being used, the right and bottom margins
- will be three-quarters of an inch and one inch, respectively.
-
- 2. Font and Column Measure
-
- EXAMPLE: If the page interior is 7 inches wide, the tags line:
-
- <Trajan10m><column measure= 3.375in gutter=0.25in><qz>
-
- or, alternatively,
-
- <Trajan10m><column count=2 gutter=0.25in><qz>
-
- will spcify a page printed in Trajan 10 point medium (regular) type,
- in two columns 3.375 inches wide, separated by quarter-inch gutter.
-
- At run time, the Publisher will automatically lay out columns and
- gutters as specified on a page, and will start a new page whenever
- necessary. Of course, if the column structure is specified by means
- of the column measure (width), the specified column measure must not
- exceed the width of the page interior.
-
- 3. Leading (Line and Paragraph Spacing)
-
- EXAMPLE: the tag
-
- <leading line=12pt para=3pt><qz>
-
- specifies an line leading of 12 points (suitable for 10-point type)
- and a paragraph leading (extra vertical space between paragraphs) of
- 3 points.
-
-
- 4. Header and Footer Drop (Location)
-
- EXAMPLE: the tag line
-
- <margin header=0.75in footer=10.5in><qz>
-
- will cause the top of the running header (if one is defined) to be
- located 0.75 inches below the top of the page, and will cause the
- top of the running footer (if one is defined) to be located 10.5
- inches below the top of the page.
-
- 5. Folio (Page Numbering)
-
- EXAMPLE: the instructions
-
- <footer>
- <PN><QC>
- <end>
-
- will cause the folio (page number) to be printed at the bottom
- center of each page, at the position designated as the footer drop.
-
- Page numbering starts at 1 unless the user initializes it to some other
- value "n" by means of the tag <PN=n>, and appears in conventional Arabic
- numerals unless the user selects Roman numerals by means of the tag
- <folio roman=1 case=n> where "n" is `0' for lower case and `1' for upper
- case.
-
- The <PN> tag must be placed inside a header or footer: the <PN=n> tag
- would normally be placed in the initialization sequence, and in any
- event must be located outside the header and footer definitions.
-
- 6. Paragraph Style
-
- EXAMPLES: the tag <IP1.27cm> or <IP.5in> will cause the text to be
- published in standard paragraphs, with the first line of each
- paragraph indented one-half inch on the left, and no other
- indentations. Similarly, the tag <IH1.27cm> or <IH.5in> will cause
- the text to be published in hanging paragraphs, with the first line
- of each paragraph starting at the left margin of the column, and all
- other lines indented one-half inch on the left.
-
- 8.3 USING A STYLE SHEET
-
- There are two methods of using a style sheet:
-
- 1. The contents of the style sheet may be copied into the document file
- at the beginning, before any printable text; or
-
- 2. The contents of the style sheet may be stored in a separate disk
- file, which may be "included" at the beginning of the document file,
- before any printable text. EXAMPLE: if the style sheet is stored in a
- file named STYLE.ONE, it may by utilized by placing the tag
- <include style.one> at the beginning of the document file.
-
- Method (2) is generally preferable, since it results in a shorter
- and simpler document file, and permits the same style sheet to be
- used for many documents without cluttering up the computer disk with
- multiple copies of it.
-